<template>
  <div>
    <h1>{{ count }}</h1>
    <button @click="count++">+1</button>
    <button @click="$destroy()">销毁</button>
    <hr />
    <button v-role="['jiangshi', 'admin']">配置试卷</button>
    <button v-role="['admin']">修改分数</button>
    <button v-role="['jiangshi', 'admin', 'banzhuren']">查看分数</button>
  </div>
</template>

<script>
  export default {
    name: "Item",
    data() {
      return {
        count: 0,
      };
    },
  };
</script>

<style></style>
